const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
  mode: 'development',
  devtool: 'source-map',
  module: {
    rules: [
      {
        // css pcss 都可以 这个随便 只是区分一下
        test: /\.pcss$/,
        use: ['style-loader', 'css-loader?modules', 'postcss-loader'],
      },
    ],
  },
  devServer: {
    open: true,
  },
  plugins: [
    new HtmlWebpackPlugin({
      template: './public/index.html',
    }),
  ],
};
